package com.example.pm.ending.server.module.owner;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AddNewOwnerModuleDTO implements Serializable {
    @ApiModelProperty(name = "ownerName",value = "业主姓名",required = true)
    @NotNull
    private String ownerName;
    @ApiModelProperty(name = "ownerPhone",value = "业主手机号",required = true)
    @NotNull
    private String ownerPhone;
    @ApiModelProperty(name = "ownerIdCard",value = "业主身份证",required = true)
    @NotNull
    @Length(min = 18,max = 18)
    private String ownerIdCard;
    @ApiModelProperty(name = "ownerGender",value = "业主性别",required = true)
    @NotNull
    private String ownerGender;
    @ApiModelProperty(name = "houseBuildId",value = "房屋区(栋)号",required = true)
    @NotNull
    private Long houseBuildId;
    @ApiModelProperty(name = "houseUnitId",value = "单元号",required = true)
    @NotNull
    private Long houseUnitId;
    @ApiModelProperty(name = "roomNum",value = "房间号",required = true)
    @NotNull
    private String roomNum;
    @ApiModelProperty(name = "carPartAreaId",value = "车库区号")
    private Long carPartAreaId;
    @ApiModelProperty(name = "carPartNumber",value = "车位编号")
    private String carPartNumber;

}
